package com.yudean.esb.dao.erp;

import com.yudean.esb.domain.erp.ErpIdsArReceiptsInt;
import com.yudean.esb.mapper.erp.ErpIdsArReceiptsIntMapper;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Repository;

import javax.annotation.Resource;
import java.util.List;

@Repository
@Scope("prototype")
public class ErpIdsArReceiptsIntDao {

    @Resource
    public ErpIdsArReceiptsIntMapper erpIdsArReceiptsIntMapper;

    public int insertSelective(ErpIdsArReceiptsInt record) {
        return erpIdsArReceiptsIntMapper.insertSelective(record);
    }

    public int batchInsertErpIdsArReceiptsIntData(List<ErpIdsArReceiptsInt> erpIdsArReceiptsIntList) {
        return erpIdsArReceiptsIntMapper.batchInsertErpIdsArReceiptsIntData(erpIdsArReceiptsIntList);
    }

    public int deleteArReceiptsIntByControlId(long controlId) {
        return erpIdsArReceiptsIntMapper.deleteArReceiptsIntByControlId(controlId);
    }
}
